package com.xr.mapper;

import com.xr.pojo.OrderSetting;
import com.xr.pojo.OrderSettingExample;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingMapper {

    //修改预约人数
    void updateOrderSetting(OrderSetting orderSetting);

    //根据预约日期查询数量
    Long findCountByOrderDates(Date orderDate);

    //根据预约日期查询reservations
    OrderSetting findCountByOrderDate(Date orderDate);
    //根据日期更新预约人数
    void editNumberByOrderDate(OrderSetting orderSetting);
    //1.批量添加预约数据
    void addBatch(List<OrderSetting> list);

    long countByExample(OrderSettingExample example);

    int deleteByExample(OrderSettingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderSetting record);

    int insertSelective(OrderSetting record);

    List<OrderSetting> selectByExample(OrderSettingExample example);

    OrderSetting selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrderSetting record, @Param("example") OrderSettingExample example);

    int updateByExample(@Param("record") OrderSetting record, @Param("example") OrderSettingExample example);

    int updateByPrimaryKeySelective(OrderSetting record);

    int updateByPrimaryKey(OrderSetting record);
}
